﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace Infrastructure.Contracts
{
    [ServiceContract]
    public interface IFileDownloadContract
    {
        /// <summary>
        /// 下载
        /// </summary>
        /// <param name="msg"></param>
        /// <returns></returns>
        [OperationContract]
        [WebGet(BodyStyle = WebMessageBodyStyle.WrappedRequest, ResponseFormat = WebMessageFormat.Json)]
        FileTransferProtocol DownloadFile(FileTransferProtocol msg);

        /// <summary>
        /// 获取文件信息
        /// </summary>
        /// <param name="msg"></param>
        /// <returns></returns>
        [OperationContract]
        [WebGet(BodyStyle = WebMessageBodyStyle.WrappedRequest, ResponseFormat = WebMessageFormat.Json)]
        FileTransferProtocol GetFileInfo(FileTransferProtocol msg);
    }
}
